////////////////////////////////////////////////////////
// CmdDtmf.h
////////////////////////////////////////////////////////
#pragma once

#define DTMF_CMD_KICKOUT "Action: Command\r\n"\ 
                         "Command: conference kickchannel %s"\ 
                         "\r\n\r\n"
#define DTMF_CMD_RECORD "Action: Command\r\n"\
                        "Command: conference play sound %s call "\
                        "recorded disabled mute\r\n\r\n"
#define DTMF_CMD_MUTE "Action: Command\r\n"\
                      "Command: conference mutechannel %s\r\n\r\n"

#define DTMF_CMD_UNMUTE "Action: Command\r\n"\
                        "Command: conference unmutechannel %s\r\n\r\n"

class CCmdDtmf : public CCmdBase
{
public: // implementation of virtual operation
   void   init();
   void   release();
   void * parse( char * aCommand );
   int    event();

public: // operator
   CCmdDtmf &operator = ( const CCmdDtmf & aOther );
   int operator == ( const CCmdDtmf & aOther );
   int operator < ( const CCmdDtmf & aOther );
   int operator > ( const CCmdDtmf & aOther );

public:
   typedef CCmdBase super;
   CCmdDtmf();
   ~CCmdDtmf();

public: // variable
   char mConferenceName[32];
   char mUniqueId[32];
   char mCallerId[32];
   char mCallerIdName[32];
   char mKey;
   int  mCount;
   char mFlags[12];
   int  mMute;
};

